<template>
  <!-- nav 导航 -->
  <div class="swiper-nav">
    <el-carousel 
      class="swiper" 
      height="100px"
      indicator-position="none"
      arrow="never"
      :loop="false"
    >
      <el-carousel-item v-for="(item,index) in navDate" :key="index">
        <div class="swiper-item" v-for="(item,index) in [,,,,]" :key="index">
          <img src="/static/home/coffee.png" />
          <span>小家电</span>
        </div>
      </el-carousel-item>
    </el-carousel>
    <div class="pagation">
      <div class="dot active"></div>
      <div class="dot"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GraphicNavigationStyle1',
  props: {
   
  },
  data() {
    return {
     navDate: [
        {title: 'fsfs'},
        {title: 'fsfs'},
      ],
    }
  },
  computed: {
    
  },
  mounted() {
    
  },
  methods: {

  },
}
</script>

<style lang="less" scoped>
  // nav导航
  .swiper-nav {
    width: 358px;
    margin: 0 auto;
    height: 120px;
    .pagation {
      display: flex;
      align-items: center;
      justify-content: center;
      .dot {
        width: 6px;
        height: 3px;
        border-radius: 5px;
        background-color: #d7e0ff;
        margin-right: 1px;
        &.active {
          background-color: #2a55f3;
        }
      }
    }
    .swiper {
      width: 100%;
      height: 100px;
      .el-carousel__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .swiper-item {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          img {
            width: 72px;
            height: 72px;
          }
          span {
            color: #000;
            font-size: 12px;
          }
        }
        
      }
    }
    
  }
</style>